<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnResourceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('resources', function($table)
        {
            $table->integer('yy_process_id')->index()->after('process_id');       //邀约进程id
            $table->integer('ms_process_id')->index()->after('yy_process_id');    //门市进程id
            $table->integer('deal_price');                                        //成交价格
            $table->integer('created');                                           //录入时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('resources', function($table)
        {
            $table->dropColumn('yy_process_id');
            $table->dropColumn('ms_process_id');
            $table->dropColumn('deal_price');
            $table->dropColumn('created');
        });
    }

}
